how to manage the use of both $_SERVER['PHP_SELF'] in action of form and htaccess for urlrewriting t
Posted
by OM The Eternity
on Stack Overflow
See other posts from Stack Overflow
or by OM The Eternity
Published on 2010-06-16T09:42:23Z
Indexed on
2010/06/16
11:02 UTC
Read the original article
Hit count: 268
how to manage the use of both $_SERVER['PHP_SELF'] in action of form and htaccess for url-rewriting?
If I submit a form and in the action attribute of it i pass "$_SERVER['PHP_SELF']" and at the same time i am using url rewriting for the same page.. then these two things will contradict each other resulting in the display of action value of form in address bar.. so how can i manage this to get the url rewrited form of $_SERVER['PHP_SELF']?
here the rewrite rule is to change the name of url file likewise as if form is submitted to any file say direction.php then rewrite will change it to something 30/redirect.html
© Stack Overflow or respective owner